/**
 * Created by hxpeng on 2017/3/24.
 */
(function () {
    'use strict';

    angular.module('App.pages.class')
        .controller('TeacherCtrl', TeacherCtrl);

    function TeacherCtrl($scope,MemberModel,LoginAccountAuth,AppUtils,$state,$http) {

        var vm = this;
        // vm.items = [];
        // vm.pageIndex = 1;
        // vm.loadMoreBtnStatus = true;
        // vm.loadMoreBtnStr = "加载更多";
        // vm.loginAccount = {};
        // vm.teacherInfo = {};
        // LoginAccountAuth.getAccount().then(function(data){
        //     vm.loginAccount = data;
        //     MemberModel.getMemberInfo({id:data.memberId}).$promise.then(function(response){
        //         if(!AppUtils.isUndefinedOrNull(response.memberInfo)){
        //             vm.teacherInfo = response.memberInfo;
        //         }else {
        //             AppUtils.showTipsTop("未查询到教师信息！");
        //         }
        //     })
        // })
        // $scope.editMemberInfo = function(){
        //     $state.go("memberMenu.edit");
        // }
        vm.jsonStr = "";
        $scope.test = function(){
            $http.post("http://www.hxpeng.com/kinder/wechat/individuationMenu",{
                "json": vm.jsonStr
            })
                .success(function(data){
                    console.log(data);
                })
                .error(function(data,header,config,status){
                    alert("请求微信sdk校验异常");
                });
        }




    }
})();
